package org.jeecg.modules.common.facade.impl;



import org.springframework.stereotype.Service;


import org.jeecg.base.facade.impl.IFacadeImpl;
import org.jeecg.modules.common.entity.QscLife;
import org.jeecg.modules.common.facade.IQscLifeFacade;
import org.jeecg.modules.common.service.IQscLifeService;
import org.jeecg.modules.common.vo.QscLifeVo;
import org.springframework.beans.BeanUtils;

import org.springframework.beans.factory.annotation.Autowired;


/**
 * @Description: 质维码生命周期
 * @Author: zj
 * @Date:   2020-05-26
 * @Version: V1.0
 */


@Service
public class QscLifeFacadeImpl extends IFacadeImpl<QscLifeVo, QscLife, IQscLifeService>  implements IQscLifeFacade<QscLifeVo, QscLife> {
        @Autowired
        private IQscLifeService qscLifeService;


         @Override
         public QscLife po2Vo(QscLifeVo vo) {
                QscLife po = new QscLife();
                if(vo==null){
                   return null;
                }
                BeanUtils.copyProperties(vo, po);
                return po;
         }

         @Override
         public QscLifeVo vo2Po(QscLife po) {
                QscLifeVo vo = new QscLifeVo();
                 if(po==null){
                     return null;
                  }
                BeanUtils.copyProperties(po, vo);
                return vo;
         }

}
